
from info import create_app,db,models
from flask_script import Manager
from flask_migrate import Migrate,MigrateCommand

#调用方法获取APP
app = create_app("develop")

# 创建manager(对象管理app
manager = Manager(app)

# 使用Migrate关联app.db
Migrate(app,db)

# 给manager添加一条操作命令
manager.add_command("db",MigrateCommand)


if __name__ == '__main__':
    manager.run()